package com.bl.student.service.vo.pay;

import lombok.Data;

/**
 * Created by yujingyi on 2017/10/16.
 */
@Data
public class AlipaySyncResultRequest extends AbstractAlipaySyncRequest {

    private String sign;

    private String sign_type;

    private Response alipay_trade_app_pay_response;

    @Data
    public static class Response {

        private String out_trade_no;

        private String trade_no;

        private String app_id;

        private String total_amount;

        private String seller_id;

        private String msg;

        private String charset;

        private String timestamp;

        private String code;

    }

    public boolean isSuccess() {
        return this.alipay_trade_app_pay_response.code.equals(SUCCESS_CODE);
    }
}
